package com.ming_za.sokoban;

import com.ming_za.sokoban.block.RegisterBlock;
import com.ming_za.sokoban.item.SokobanItem;
import com.ming_za.sokoban.network.NetworkUtils;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;

@Mod(Sokoban.MOD_ID)
@Mod.EventBusSubscriber
public class Sokoban {
    public static final String MOD_ID = "sokoban";

    public Sokoban() {

        //注册
        var bus = FMLJavaModLoadingContext.get().getModEventBus();

        SokobanItem.ITEMS.register(bus);
        RegisterBlock.BLOCKS.register(bus);

        //网络工具初始化
        NetworkUtils.getInstance().initialize();


    }


}
